package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UgcUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ugc_user", catalog = "mr_plants")
public class UgcUser implements java.io.Serializable {

	// Fields

	private Integer id;
	private String myId;
	private String nickname;
	private String sex;
	private String photo;
	private String backgroundImage;
	private String level;
	private String email;
	private String tel;
	private String password;
	private String signature;
	private String province;
	private String city;
	private String iosUuid;
	private String weixinOpenId;
	private String weixinUnionId;
	private String diviceToken;
	private Timestamp registerTime;
	private String ip;

	// Constructors

	/** default constructor */
	public UgcUser() {
	}

	/** full constructor */
	public UgcUser(String myId, String nickname, String sex, String photo,
			String backgroundImage, String level, String email, String tel,
			String password, String signature, String province, String city,
			String iosUuid, String weixinOpenId, String weixinUnionId,
			String diviceToken, Timestamp registerTime, String ip) {
		this.myId = myId;
		this.nickname = nickname;
		this.sex = sex;
		this.photo = photo;
		this.backgroundImage = backgroundImage;
		this.level = level;
		this.email = email;
		this.tel = tel;
		this.password = password;
		this.signature = signature;
		this.province = province;
		this.city = city;
		this.iosUuid = iosUuid;
		this.weixinOpenId = weixinOpenId;
		this.weixinUnionId = weixinUnionId;
		this.diviceToken = diviceToken;
		this.registerTime = registerTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "my_id", length = 32)
	public String getMyId() {
		return this.myId;
	}

	public void setMyId(String myId) {
		this.myId = myId;
	}

	@Column(name = "nickname", length = 16)
	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	@Column(name = "sex", length = 16)
	public String getSex() {
		return this.sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "photo", length = 258)
	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	@Column(name = "background_image", length = 258)
	public String getBackgroundImage() {
		return this.backgroundImage;
	}

	public void setBackgroundImage(String backgroundImage) {
		this.backgroundImage = backgroundImage;
	}

	@Column(name = "level", length = 32)
	public String getLevel() {
		return this.level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	@Column(name = "email", length = 128)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "tel", length = 16)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "password", length = 66)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "signature", length = 320)
	public String getSignature() {
		return this.signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	@Column(name = "province", length = 32)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "city", length = 32)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "ios_uuid", length = 32)
	public String getIosUuid() {
		return this.iosUuid;
	}

	public void setIosUuid(String iosUuid) {
		this.iosUuid = iosUuid;
	}

	@Column(name = "weixin_open_id", length = 120)
	public String getWeixinOpenId() {
		return this.weixinOpenId;
	}

	public void setWeixinOpenId(String weixinOpenId) {
		this.weixinOpenId = weixinOpenId;
	}

	@Column(name = "weixin_union_id")
	public String getWeixinUnionId() {
		return this.weixinUnionId;
	}

	public void setWeixinUnionId(String weixinUnionId) {
		this.weixinUnionId = weixinUnionId;
	}

	@Column(name = "divice_token", length = 120)
	public String getDiviceToken() {
		return this.diviceToken;
	}

	public void setDiviceToken(String diviceToken) {
		this.diviceToken = diviceToken;
	}

	@Column(name = "register_time", length = 19)
	public Timestamp getRegisterTime() {
		return this.registerTime;
	}

	public void setRegisterTime(Timestamp registerTime) {
		this.registerTime = registerTime;
	}

	@Column(name = "ip", length = 15)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}